package com.fire.control.system.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import com.fire.control.system.statics.Status_Duty;

/**
 * 值班实体类
 * TDuty entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_duty", catalog = "fire_control_system")
public class Duty extends BaseEntity {

	// Fields
	private static final long serialVersionUID = 1L;
	
	private String companyId;
	
	private Date dutyDate;
	
	/**
	 * 值班状态
	 */
	@Column(name = "duty_status", nullable = false,length=20)
	private String dutyStatus;
	@Column(name = "sign_address")
	private String signAddress;
	private Date signTime;

	private String userId;
	
	// Constructors

	/** default constructor */
	public Duty() {
	}

	/** full constructor */
	public Duty(String companyId,
			Date dutyDate, String dutyStatus, String signAddress,
			Date signTime) {
		this.companyId = companyId;
		this.dutyDate = dutyDate;
		this.dutyStatus = dutyStatus;
		this.signAddress = signAddress;
		this.signTime = signTime;
	}


	public String getDutyStatus() {
		return dutyStatus;
	}

	public void setDutyStatus(String dutyStatus) {
		this.dutyStatus = dutyStatus;
	}

	@Column(name = "company_id", nullable = false, length = 36)
	public String getCompanyId() {
		return this.companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	@Column(name = "duty_date", length = 0)
	public Date getDutyDate() {
		return this.dutyDate;
	}

	public void setDutyDate(Date dutyDate) {
		this.dutyDate = dutyDate;
	}


	

	@Column(name = "sign_time", length = 0)
	public Date getSignTime() {
		return this.signTime;
	}

	public void setSignTime(Date signTime) {
		this.signTime = signTime;
	}

	@Column(name = "user_id",length=36)
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getSignAddress() {
		return signAddress;
	}

	public void setSignAddress(String signAddress) {
		this.signAddress = signAddress;
	}

}